package com.An.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @auther AnYang
 * @date 2022/3/15 23:15
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("course_info")
public class Course {
	@TableId(value = "cid", type = IdType.AUTO)
	public Integer cid;
	public String cname;
	public String course_type;
	public String classes;

	@Override
	public String toString() {
		return "Caurse{" +
				"课程号：" + cid +
				", 课程名称：'" + cname + '\'' +
				", 课程类型：'" + course_type + '\'' +
				", 必修/选修：'" + classes + '\'' +
				'}';
	}
}